package ar.com.solidussource.howmuchmobile.activities.filter;

import ar.com.solidussource.howmuchmobile.common.entities.Location;
import ar.com.solidussource.howmuchmobile.common.entities.Product;
import ar.com.solidussource.howmuchmobile.common.entities.Productcategory;
import ar.com.solidussource.howmuchmobile.common.entities.Productsubcategory;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: FT31270775
 * Date: 07/11/12
 * Time: 14:27
 * To change this template use File | Settings | File Templates.
 */
public class CurrentFilter {
    private static Location location;
    private static List<Product> products = new ArrayList<Product>();

    //add
    private static Productcategory productcategory;
    private static Productsubcategory productsubcategory;

    public static Location getLocation() {
        return location;
    }

    public static void setLocation(Location loc) {
        location = loc;
    }

    public static List<Product> getProducts() {
        return products;
    }

    public static void addProduct(Product product) {
        products.add(product);
    }

    public static void removeProduct(Product product) {
        products.remove(product);
    }

    public static void clearProducts() {
        products.clear();
    }

    public static Productcategory getProductcategory() {
        return productcategory;
    }

    public static void setProductcategory(Productcategory productcategory) {
        CurrentFilter.productcategory = productcategory;
    }

    public static Productsubcategory getProductsubcategory() {
        return productsubcategory;
    }

    public static void setProductsubcategory(Productsubcategory productsubcategory) {
        CurrentFilter.productsubcategory = productsubcategory;
    }

    //clear filter

}
